from fastapi import APIRouter, Depends

from app.api.item.services.item_service import ItemService

router = APIRouter(prefix="/item", tags=["item"])

@router.get("/get/user")
async def get_user_by_name(item_service: ItemService = Depends(), name: str = None):
    return await item_service.get_item(name)